<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>演示</title>
</head>
<body>
    <form action="#" method="get">
        所在城市:
        <select name="city">
            <option>---请选择城市---</option>
            <optgroup label="直辖市">
                <option value="sh">上海</option>
                <option value="sz">深圳</option>
                <option value="bj">北京</option>
            </optgroup>
            <optgroup label="省会城市">
                <option value="hf">合肥</option>
                <option value="nj">南京</option>
                <option value="zj">郑州</option>
            </optgroup>
        </select><br/>

        文本域:
        <textarea name="text" rows="10" cols="20"></textarea>

        <button type="submit">提交</button>
        <button type="reset">重置</button>
    </form>
</body>
</html>